.class public Lcom/instagram/android/directshare/b/a/u;
.super Ljava/lang/Object;
.source "SeenDirectShareRequestManager.java"


# static fields
.field private static a:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Lcom/instagram/android/directshare/b/a/t;",
            ">;"
        }
    .end annotation
.end field

.field private static b:Lcom/instagram/android/directshare/b/a/u;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 21
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcom/instagram/android/directshare/b/a/u;->a:Ljava/util/HashMap;

    return-void
.end method

.method private constructor <init>()V
    .locals 0

    .prologue
    .line 38
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 40
    return-void
.end method

.method public static a()Lcom/instagram/android/directshare/b/a/u;
    .locals 1

    .prologue
    .line 27
    sget-object v0, Lcom/instagram/android/directshare/b/a/u;->b:Lcom/instagram/android/directshare/b/a/u;

    if-nez v0, :cond_0

    .line 28
    invoke-static {}, Lcom/instagram/android/directshare/b/a/u;->b()V

    .line 30
    :cond_0
    sget-object v0, Lcom/instagram/android/directshare/b/a/u;->b:Lcom/instagram/android/directshare/b/a/u;

    return-object v0
.end method

.method private a(Lcom/instagram/j/l;)V
    .locals 2
    .parameter

    .prologue
    .line 81
    invoke-virtual {p1}, Lcom/instagram/j/l;->ak()J

    move-result-wide v0

    invoke-virtual {p1, v0, v1}, Lcom/instagram/j/l;->b(J)V

    .line 82
    invoke-direct {p0}, Lcom/instagram/android/directshare/b/a/u;->c()V

    .line 83
    return-void
.end method

.method private static declared-synchronized b()V
    .locals 2

    .prologue
    .line 34
    const-class v1, Lcom/instagram/android/directshare/b/a/u;

    monitor-enter v1

    :try_start_0
    sget-object v0, Lcom/instagram/android/directshare/b/a/u;->b:Lcom/instagram/android/directshare/b/a/u;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    .line 36
    :goto_0
    monitor-exit v1

    return-void

    .line 35
    :cond_0
    :try_start_1
    new-instance v0, Lcom/instagram/android/directshare/b/a/u;

    invoke-direct {v0}, Lcom/instagram/android/directshare/b/a/u;-><init>()V

    sput-object v0, Lcom/instagram/android/directshare/b/a/u;->b:Lcom/instagram/android/directshare/b/a/u;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 34
    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0
.end method

.method private c()V
    .locals 1

    .prologue
    .line 86
    const-string v0, "InboxFragment.UPDATE_INBOX"

    invoke-static {v0}, Lcom/instagram/n/d;->a(Ljava/lang/String;)Z

    .line 87
    return-void
.end method

.method private declared-synchronized c(Lcom/instagram/android/directshare/b/a/t;)V
    .locals 2
    .parameter

    .prologue
    .line 74
    monitor-enter p0

    :try_start_0
    sget-object v0, Lcom/instagram/android/directshare/b/a/u;->a:Ljava/util/HashMap;

    invoke-virtual {p1}, Lcom/instagram/android/directshare/b/a/t;->i()Lcom/instagram/j/l;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/directshare/b/a/t;

    .line 75
    if-ne v0, p1, :cond_0

    .line 76
    sget-object v0, Lcom/instagram/android/directshare/b/a/u;->a:Ljava/util/HashMap;

    invoke-virtual {p1}, Lcom/instagram/android/directshare/b/a/t;->i()Lcom/instagram/j/l;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 78
    :cond_0
    monitor-exit p0

    return-void

    .line 74
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method


# virtual methods
.method public declared-synchronized a(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/j/l;)V
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    .line 46
    monitor-enter p0

    :try_start_0
    invoke-virtual {p3}, Lcom/instagram/j/l;->aj()J

    move-result-wide v0

    invoke-virtual {p3}, Lcom/instagram/j/l;->ak()J

    move-result-wide v2

    cmp-long v0, v0, v2

    if-gez v0, :cond_0

    .line 47
    new-instance v0, Lcom/instagram/android/directshare/b/a/t;

    invoke-direct {v0, p1, p2, p3}, Lcom/instagram/android/directshare/b/a/t;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/j/l;)V

    .line 48
    sget-object v1, Lcom/instagram/android/directshare/b/a/u;->a:Ljava/util/HashMap;

    invoke-virtual {p3}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 49
    invoke-direct {p0, p3}, Lcom/instagram/android/directshare/b/a/u;->a(Lcom/instagram/j/l;)V

    .line 50
    invoke-virtual {v0}, Lcom/instagram/android/directshare/b/a/t;->g()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 52
    :cond_0
    monitor-exit p0

    return-void

    .line 46
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized a(Lcom/instagram/android/directshare/b/a/t;)V
    .locals 5
    .parameter

    .prologue
    .line 55
    monitor-enter p0

    :try_start_0
    invoke-direct {p0, p1}, Lcom/instagram/android/directshare/b/a/u;->c(Lcom/instagram/android/directshare/b/a/t;)V

    .line 56
    invoke-virtual {p1}, Lcom/instagram/android/directshare/b/a/t;->i()Lcom/instagram/j/l;

    move-result-object v0

    .line 58
    invoke-virtual {p1}, Lcom/instagram/android/directshare/b/a/t;->j()J

    move-result-wide v1

    invoke-virtual {v0}, Lcom/instagram/j/l;->al()J

    move-result-wide v3

    cmp-long v1, v1, v3

    if-lez v1, :cond_0

    .line 59
    invoke-virtual {p1}, Lcom/instagram/android/directshare/b/a/t;->j()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcom/instagram/j/l;->c(J)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 61
    :cond_0
    monitor-exit p0

    return-void

    .line 55
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized b(Lcom/instagram/android/directshare/b/a/t;)V
    .locals 3
    .parameter

    .prologue
    .line 64
    monitor-enter p0

    :try_start_0
    invoke-direct {p0, p1}, Lcom/instagram/android/directshare/b/a/u;->c(Lcom/instagram/android/directshare/b/a/t;)V

    .line 66
    invoke-virtual {p1}, Lcom/instagram/android/directshare/b/a/t;->i()Lcom/instagram/j/l;

    move-result-object v0

    .line 67
    sget-object v1, Lcom/instagram/android/directshare/b/a/u;->a:Ljava/util/HashMap;

    invoke-virtual {v0}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 68
    invoke-virtual {v0}, Lcom/instagram/j/l;->al()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Lcom/instagram/j/l;->b(J)V

    .line 69
    invoke-direct {p0}, Lcom/instagram/android/directshare/b/a/u;->c()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 71
    :cond_0
    monitor-exit p0

    return-void

    .line 64
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
